header bar: Make it possible to have no title
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2014 00:43:22 +0000 (19:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2014 00:52:29 +0000 (19:52 -0500)
commitb73d291086aea251c48d21192e1818488a1b58f4
tree8d2c9f11d2b61d17eb042e0e6ce05e8dbb18fe45
parentc2d7a74c0b2e0609a27c35bc90df60fb67d52069
header bar: Make it possible to have no title

Add a custom title had the side-effect of showing the widget.
That is not right, adding children and managing their visibility
should be independent. The headerbar size allocation code also
made the assumption that a custom title is always visible.

With these changes, GtkHeaderBar should be usable in situations
where the centering functionality is not required, and it is
important to freely pack content at both ends, such as in nautilus.

https://bugzilla.gnome.org/show_bug.cgi?id=722340
gtk/gtkheaderbar.c